<template>
<h1>EL-下拉选框组件</h1>
  <el-select v-model="city" placeholder="请选择您喜欢的城市" style="width: 400px;">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="广州" value="gz"></el-option>
    <el-option label="深圳" value="sz"></el-option>
  </el-select>
  <p>您选择的城市是:{{ city }}</p>
</template>
<script setup>
import {ref} from "vue";
const city = ref("bj");
</script>


<style scoped>

</style>